Integrand size = 28, antiderivative size = 301 \[ \int \cos ^2(c+d x) (a \cos (c+d x)+b \sin (c+d x))^4 \, dx=\frac {5 a^4 x}{16}+\frac {3}{8} a^2 b^2 x+\frac {b^4 x}{16}-\frac {2 a^3 b \cos ^6(c+d x)}{3 d}+\frac {5 a^4 \cos (c+d x) \sin (c+d x)}{16 d}+\frac {3 a^2 b^2 \cos (c+d x) \sin (c+d x)}{8 d}+\frac {b^4 \cos (c+d x) \sin (c+d x)}{16 d}+\frac {5 a^4 \cos ^3(c+d x) \sin (c+d x)}{24 d}+\frac {a^2 b^2 \cos ^3(c+d x) \sin (c+d x)}{4 d}-\frac {b^4 \cos ^3(c+d x) \sin (c+d x)}{8 d}+\frac {a^4 \cos ^5(c+d x) \sin (c+d x)}{6 d}-\frac {a^2 b^2 \cos ^5(c+d x) \sin (c+d x)}{d}-\frac {b^4 \cos ^3(c+d x) \sin ^3(c+d x)}{6 d}+\frac {a b^3 \sin ^4(c+d x)}{d}-\frac {2 a b^3 \sin ^6(c+d x)}{3 d} \]
[Out]
Time = 0.34 (sec) , antiderivative size = 301, normalized size of antiderivative = 1.00, number of steps used = 19, number of rules used = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.286, Rules used = {3169, 2715, 8, 2645, 30, 2648, 2644, 14} \[ \int \cos ^2(c+d x) (a \cos (c+d x)+b \sin (c+d x))^4 \, dx=\frac {a^4 \sin (c+d x) \cos ^5(c+d x)}{6 d}+\frac {5 a^4 \sin (c+d x) \cos ^3(c+d x)}{24 d}+\frac {5 a^4 \sin (c+d x) \cos (c+d x)}{16 d}+\frac {5 a^4 x}{16}-\frac {2 a^3 b \cos ^6(c+d x)}{3 d}-\frac {a^2 b^2 \sin (c+d x) \cos ^5(c+d x)}{d}+\frac {a^2 b^2 \sin (c+d x) \cos ^3(c+d x)}{4 d}+\frac {3 a^2 b^2 \sin (c+d x) \cos (c+d x)}{8 d}+\frac {3}{8} a^2 b^2 x-\frac {2 a b^3 \sin ^6(c+d x)}{3 d}+\frac {a b^3 \sin ^4(c+d x)}{d}-\frac {b^4 \sin ^3(c+d x) \cos ^3(c+d x)}{6 d}-\frac {b^4 \sin (c+d x) \cos ^3(c+d x)}{8 d}+\frac {b^4 \sin (c+d x) \cos (c+d x)}{16 d}+\frac {b^4 x}{16} \]
[In]
[Out]
Rule 8
Rule 14
Rule 30
Rule 2644
Rule 2645
Rule 2648
Rule 2715
Rule 3169
Rubi steps \begin{align*} \text {integral}& = \int \left (a^4 \cos ^6(c+d x)+4 a^3 b \cos ^5(c+d x) \sin (c+d x)+6 a^2 b^2 \cos ^4(c+d x) \sin ^2(c+d x)+4 a b^3 \cos ^3(c+d x) \sin ^3(c+d x)+b^4 \cos ^2(c+d x) \sin ^4(c+d x)\right ) \, dx \\ & = a^4 \int \cos ^6(c+d x) \, dx+\left (4 a^3 b\right ) \int \cos ^5(c+d x) \sin (c+d x) \, dx+\left (6 a^2 b^2\right ) \int \cos ^4(c+d x) \sin ^2(c+d x) \, dx+\left (4 a b^3\right ) \int \cos ^3(c+d x) \sin ^3(c+d x) \, dx+b^4 \int \cos ^2(c+d x) \sin ^4(c+d x) \, dx \\ & = \frac {a^4 \cos ^5(c+d x) \sin (c+d x)}{6 d}-\frac {a^2 b^2 \cos ^5(c+d x) \sin (c+d x)}{d}-\frac {b^4 \cos ^3(c+d x) \sin ^3(c+d x)}{6 d}+\frac {1}{6} \left (5 a^4\right ) \int \cos ^4(c+d x) \, dx+\left (a^2 b^2\right ) \int \cos ^4(c+d x) \, dx+\frac {1}{2} b^4 \int \cos ^2(c+d x) \sin ^2(c+d x) \, dx-\frac {\left (4 a^3 b\right ) \text {Subst}\left (\int x^5 \, dx,x,\cos (c+d x)\right )}{d}+\frac {\left (4 a b^3\right ) \text {Subst}\left (\int x^3 \left (1-x^2\right ) \, dx,x,\sin (c+d x)\right )}{d} \\ & = -\frac {2 a^3 b \cos ^6(c+d x)}{3 d}+\frac {5 a^4 \cos ^3(c+d x) \sin (c+d x)}{24 d}+\frac {a^2 b^2 \cos ^3(c+d x) \sin (c+d x)}{4 d}-\frac {b^4 \cos ^3(c+d x) \sin (c+d x)}{8 d}+\frac {a^4 \cos ^5(c+d x) \sin (c+d x)}{6 d}-\frac {a^2 b^2 \cos ^5(c+d x) \sin (c+d x)}{d}-\frac {b^4 \cos ^3(c+d x) \sin ^3(c+d x)}{6 d}+\frac {1}{8} \left (5 a^4\right ) \int \cos ^2(c+d x) \, dx+\frac {1}{4} \left (3 a^2 b^2\right ) \int \cos ^2(c+d x) \, dx+\frac {1}{8} b^4 \int \cos ^2(c+d x) \, dx+\frac {\left (4 a b^3\right ) \text {Subst}\left (\int \left (x^3-x^5\right ) \, dx,x,\sin (c+d x)\right )}{d} \\ & = -\frac {2 a^3 b \cos ^6(c+d x)}{3 d}+\frac {5 a^4 \cos (c+d x) \sin (c+d x)}{16 d}+\frac {3 a^2 b^2 \cos (c+d x) \sin (c+d x)}{8 d}+\frac {b^4 \cos (c+d x) \sin (c+d x)}{16 d}+\frac {5 a^4 \cos ^3(c+d x) \sin (c+d x)}{24 d}+\frac {a^2 b^2 \cos ^3(c+d x) \sin (c+d x)}{4 d}-\frac {b^4 \cos ^3(c+d x) \sin (c+d x)}{8 d}+\frac {a^4 \cos ^5(c+d x) \sin (c+d x)}{6 d}-\frac {a^2 b^2 \cos ^5(c+d x) \sin (c+d x)}{d}-\frac {b^4 \cos ^3(c+d x) \sin ^3(c+d x)}{6 d}+\frac {a b^3 \sin ^4(c+d x)}{d}-\frac {2 a b^3 \sin ^6(c+d x)}{3 d}+\frac {1}{16} \left (5 a^4\right ) \int 1 \, dx+\frac {1}{8} \left (3 a^2 b^2\right ) \int 1 \, dx+\frac {1}{16} b^4 \int 1 \, dx \\ & = \frac {5 a^4 x}{16}+\frac {3}{8} a^2 b^2 x+\frac {b^4 x}{16}-\frac {2 a^3 b \cos ^6(c+d x)}{3 d}+\frac {5 a^4 \cos (c+d x) \sin (c+d x)}{16 d}+\frac {3 a^2 b^2 \cos (c+d x) \sin (c+d x)}{8 d}+\frac {b^4 \cos (c+d x) \sin (c+d x)}{16 d}+\frac {5 a^4 \cos ^3(c+d x) \sin (c+d x)}{24 d}+\frac {a^2 b^2 \cos ^3(c+d x) \sin (c+d x)}{4 d}-\frac {b^4 \cos ^3(c+d x) \sin (c+d x)}{8 d}+\frac {a^4 \cos ^5(c+d x) \sin (c+d x)}{6 d}-\frac {a^2 b^2 \cos ^5(c+d x) \sin (c+d x)}{d}-\frac {b^4 \cos ^3(c+d x) \sin ^3(c+d x)}{6 d}+\frac {a b^3 \sin ^4(c+d x)}{d}-\frac {2 a b^3 \sin ^6(c+d x)}{3 d} \\ \end{align*}
Result contains complex when optimal does not.
Time = 1.87 (sec) , antiderivative size = 178, normalized size of antiderivative = 0.59 \[ \int \cos ^2(c+d x) (a \cos (c+d x)+b \sin (c+d x))^4 \, dx=\frac {12 (a-i b) (a+i b) \left (5 a^2+b^2\right ) (c+d x)-12 a b \left (5 a^2+3 b^2\right ) \cos (2 (c+d x))-24 a^3 b \cos (4 (c+d x))-4 a b \left (a^2-b^2\right ) \cos (6 (c+d x))+3 \left (15 a^4+6 a^2 b^2-b^4\right ) \sin (2 (c+d x))+3 \left (3 a^4-6 a^2 b^2-b^4\right ) \sin (4 (c+d x))+\left (a^4-6 a^2 b^2+b^4\right ) \sin (6 (c+d x))}{192 d} \]
[In]
[Out]
Time = 1.18 (sec) , antiderivative size = 187, normalized size of antiderivative = 0.62
method | result | size |
parallelrisch | \(\frac {\left (45 a^{4}+18 a^{2} b^{2}-3 b^{4}\right ) \sin \left (2 d x +2 c \right )+\left (9 a^{4}-18 a^{2} b^{2}-3 b^{4}\right ) \sin \left (4 d x +4 c \right )+\left (a^{4}-6 a^{2} b^{2}+b^{4}\right ) \sin \left (6 d x +6 c \right )+\left (-60 a^{3} b -36 a \,b^{3}\right ) \cos \left (2 d x +2 c \right )+\left (-4 a^{3} b +4 a \,b^{3}\right ) \cos \left (6 d x +6 c \right )+60 a^{4} d x +72 a^{2} b^{2} d x +12 b^{4} d x -24 \cos \left (4 d x +4 c \right ) a^{3} b +88 a^{3} b +32 a \,b^{3}}{192 d}\) | \(187\) |
derivativedivides | \(\frac {a^{4} \left (\frac {\left (\cos \left (d x +c \right )^{5}+\frac {5 \cos \left (d x +c \right )^{3}}{4}+\frac {15 \cos \left (d x +c \right )}{8}\right ) \sin \left (d x +c \right )}{6}+\frac {5 d x}{16}+\frac {5 c}{16}\right )-\frac {2 a^{3} b \cos \left (d x +c \right )^{6}}{3}+6 a^{2} b^{2} \left (-\frac {\cos \left (d x +c \right )^{5} \sin \left (d x +c \right )}{6}+\frac {\left (\cos \left (d x +c \right )^{3}+\frac {3 \cos \left (d x +c \right )}{2}\right ) \sin \left (d x +c \right )}{24}+\frac {d x}{16}+\frac {c}{16}\right )+4 a \,b^{3} \left (-\frac {\sin \left (d x +c \right )^{2} \cos \left (d x +c \right )^{4}}{6}-\frac {\cos \left (d x +c \right )^{4}}{12}\right )+b^{4} \left (-\frac {\cos \left (d x +c \right )^{3} \sin \left (d x +c \right )^{3}}{6}-\frac {\sin \left (d x +c \right ) \cos \left (d x +c \right )^{3}}{8}+\frac {\sin \left (d x +c \right ) \cos \left (d x +c \right )}{16}+\frac {d x}{16}+\frac {c}{16}\right )}{d}\) | \(219\) |
default | \(\frac {a^{4} \left (\frac {\left (\cos \left (d x +c \right )^{5}+\frac {5 \cos \left (d x +c \right )^{3}}{4}+\frac {15 \cos \left (d x +c \right )}{8}\right ) \sin \left (d x +c \right )}{6}+\frac {5 d x}{16}+\frac {5 c}{16}\right )-\frac {2 a^{3} b \cos \left (d x +c \right )^{6}}{3}+6 a^{2} b^{2} \left (-\frac {\cos \left (d x +c \right )^{5} \sin \left (d x +c \right )}{6}+\frac {\left (\cos \left (d x +c \right )^{3}+\frac {3 \cos \left (d x +c \right )}{2}\right ) \sin \left (d x +c \right )}{24}+\frac {d x}{16}+\frac {c}{16}\right )+4 a \,b^{3} \left (-\frac {\sin \left (d x +c \right )^{2} \cos \left (d x +c \right )^{4}}{6}-\frac {\cos \left (d x +c \right )^{4}}{12}\right )+b^{4} \left (-\frac {\cos \left (d x +c \right )^{3} \sin \left (d x +c \right )^{3}}{6}-\frac {\sin \left (d x +c \right ) \cos \left (d x +c \right )^{3}}{8}+\frac {\sin \left (d x +c \right ) \cos \left (d x +c \right )}{16}+\frac {d x}{16}+\frac {c}{16}\right )}{d}\) | \(219\) |
parts | \(\frac {a^{4} \left (\frac {\left (\cos \left (d x +c \right )^{5}+\frac {5 \cos \left (d x +c \right )^{3}}{4}+\frac {15 \cos \left (d x +c \right )}{8}\right ) \sin \left (d x +c \right )}{6}+\frac {5 d x}{16}+\frac {5 c}{16}\right )}{d}+\frac {b^{4} \left (-\frac {\cos \left (d x +c \right )^{3} \sin \left (d x +c \right )^{3}}{6}-\frac {\sin \left (d x +c \right ) \cos \left (d x +c \right )^{3}}{8}+\frac {\sin \left (d x +c \right ) \cos \left (d x +c \right )}{16}+\frac {d x}{16}+\frac {c}{16}\right )}{d}+\frac {4 a \,b^{3} \left (-\frac {\sin \left (d x +c \right )^{6}}{6}+\frac {\sin \left (d x +c \right )^{4}}{4}\right )}{d}+\frac {6 a^{2} b^{2} \left (-\frac {\cos \left (d x +c \right )^{5} \sin \left (d x +c \right )}{6}+\frac {\left (\cos \left (d x +c \right )^{3}+\frac {3 \cos \left (d x +c \right )}{2}\right ) \sin \left (d x +c \right )}{24}+\frac {d x}{16}+\frac {c}{16}\right )}{d}-\frac {2 a^{3} b \cos \left (d x +c \right )^{6}}{3 d}\) | \(222\) |
risch | \(\frac {5 a^{4} x}{16}+\frac {3 a^{2} b^{2} x}{8}+\frac {b^{4} x}{16}-\frac {a^{3} b \cos \left (6 d x +6 c \right )}{48 d}+\frac {a \,b^{3} \cos \left (6 d x +6 c \right )}{48 d}+\frac {a^{4} \sin \left (6 d x +6 c \right )}{192 d}-\frac {a^{2} \sin \left (6 d x +6 c \right ) b^{2}}{32 d}+\frac {\sin \left (6 d x +6 c \right ) b^{4}}{192 d}-\frac {a^{3} b \cos \left (4 d x +4 c \right )}{8 d}+\frac {3 \sin \left (4 d x +4 c \right ) a^{4}}{64 d}-\frac {3 \sin \left (4 d x +4 c \right ) a^{2} b^{2}}{32 d}-\frac {\sin \left (4 d x +4 c \right ) b^{4}}{64 d}-\frac {5 a^{3} b \cos \left (2 d x +2 c \right )}{16 d}-\frac {3 a \,b^{3} \cos \left (2 d x +2 c \right )}{16 d}+\frac {15 a^{4} \sin \left (2 d x +2 c \right )}{64 d}+\frac {3 a^{2} \sin \left (2 d x +2 c \right ) b^{2}}{32 d}-\frac {\sin \left (2 d x +2 c \right ) b^{4}}{64 d}\) | \(275\) |
norman | \(\frac {\left (\frac {5}{16} a^{4}+\frac {3}{8} a^{2} b^{2}+\frac {1}{16} b^{4}\right ) x +\left (\frac {5}{16} a^{4}+\frac {3}{8} a^{2} b^{2}+\frac {1}{16} b^{4}\right ) x \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{12}+\left (\frac {15}{8} a^{4}+\frac {9}{4} a^{2} b^{2}+\frac {3}{8} b^{4}\right ) x \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}+\left (\frac {15}{8} a^{4}+\frac {9}{4} a^{2} b^{2}+\frac {3}{8} b^{4}\right ) x \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{10}+\left (\frac {25}{4} a^{4}+\frac {15}{2} a^{2} b^{2}+\frac {5}{4} b^{4}\right ) x \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{6}+\left (\frac {75}{16} a^{4}+\frac {45}{8} a^{2} b^{2}+\frac {15}{16} b^{4}\right ) x \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}+\left (\frac {75}{16} a^{4}+\frac {45}{8} a^{2} b^{2}+\frac {15}{16} b^{4}\right ) x \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{8}+\frac {16 a \,b^{3} \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}}{d}+\frac {16 a \,b^{3} \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{8}}{d}+\frac {8 a^{3} b \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}{d}+\frac {8 a^{3} b \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{10}}{d}-\frac {\left (5 a^{4}-282 a^{2} b^{2}+17 b^{4}\right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{3}}{24 d}+\frac {\left (5 a^{4}-282 a^{2} b^{2}+17 b^{4}\right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{9}}{24 d}+\frac {\left (11 a^{4}-6 a^{2} b^{2}-b^{4}\right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{8 d}-\frac {\left (11 a^{4}-6 a^{2} b^{2}-b^{4}\right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{11}}{8 d}+\frac {\left (15 a^{4}-78 a^{2} b^{2}+19 b^{4}\right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{5}}{4 d}-\frac {\left (15 a^{4}-78 a^{2} b^{2}+19 b^{4}\right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{7}}{4 d}+\frac {4 \left (20 a^{3} b -8 a \,b^{3}\right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{6}}{3 d}}{\left (1+\tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}\right )^{6}}\) | \(548\) |
[In]
[Out]
none
Time = 0.25 (sec) , antiderivative size = 151, normalized size of antiderivative = 0.50 \[ \int \cos ^2(c+d x) (a \cos (c+d x)+b \sin (c+d x))^4 \, dx=-\frac {48 \, a b^{3} \cos \left (d x + c\right )^{4} + 32 \, {\left (a^{3} b - a b^{3}\right )} \cos \left (d x + c\right )^{6} - 3 \, {\left (5 \, a^{4} + 6 \, a^{2} b^{2} + b^{4}\right )} d x - {\left (8 \, {\left (a^{4} - 6 \, a^{2} b^{2} + b^{4}\right )} \cos \left (d x + c\right )^{5} + 2 \, {\left (5 \, a^{4} + 6 \, a^{2} b^{2} - 7 \, b^{4}\right )} \cos \left (d x + c\right )^{3} + 3 \, {\left (5 \, a^{4} + 6 \, a^{2} b^{2} + b^{4}\right )} \cos \left (d x + c\right )\right )} \sin \left (d x + c\right )}{48 \, d} \]
[In]
[Out]
Time = 0.42 (sec) , antiderivative size = 563, normalized size of antiderivative = 1.87 \[ \int \cos ^2(c+d x) (a \cos (c+d x)+b \sin (c+d x))^4 \, dx=\begin {cases} \frac {5 a^{4} x \sin ^{6}{\left (c + d x \right )}}{16} + \frac {15 a^{4} x \sin ^{4}{\left (c + d x \right )} \cos ^{2}{\left (c + d x \right )}}{16} + \frac {15 a^{4} x \sin ^{2}{\left (c + d x \right )} \cos ^{4}{\left (c + d x \right )}}{16} + \frac {5 a^{4} x \cos ^{6}{\left (c + d x \right )}}{16} + \frac {5 a^{4} \sin ^{5}{\left (c + d x \right )} \cos {\left (c + d x \right )}}{16 d} + \frac {5 a^{4} \sin ^{3}{\left (c + d x \right )} \cos ^{3}{\left (c + d x \right )}}{6 d} + \frac {11 a^{4} \sin {\left (c + d x \right )} \cos ^{5}{\left (c + d x \right )}}{16 d} - \frac {2 a^{3} b \cos ^{6}{\left (c + d x \right )}}{3 d} + \frac {3 a^{2} b^{2} x \sin ^{6}{\left (c + d x \right )}}{8} + \frac {9 a^{2} b^{2} x \sin ^{4}{\left (c + d x \right )} \cos ^{2}{\left (c + d x \right )}}{8} + \frac {9 a^{2} b^{2} x \sin ^{2}{\left (c + d x \right )} \cos ^{4}{\left (c + d x \right )}}{8} + \frac {3 a^{2} b^{2} x \cos ^{6}{\left (c + d x \right )}}{8} + \frac {3 a^{2} b^{2} \sin ^{5}{\left (c + d x \right )} \cos {\left (c + d x \right )}}{8 d} + \frac {a^{2} b^{2} \sin ^{3}{\left (c + d x \right )} \cos ^{3}{\left (c + d x \right )}}{d} - \frac {3 a^{2} b^{2} \sin {\left (c + d x \right )} \cos ^{5}{\left (c + d x \right )}}{8 d} + \frac {a b^{3} \sin ^{6}{\left (c + d x \right )}}{3 d} + \frac {a b^{3} \sin ^{4}{\left (c + d x \right )} \cos ^{2}{\left (c + d x \right )}}{d} + \frac {b^{4} x \sin ^{6}{\left (c + d x \right )}}{16} + \frac {3 b^{4} x \sin ^{4}{\left (c + d x \right )} \cos ^{2}{\left (c + d x \right )}}{16} + \frac {3 b^{4} x \sin ^{2}{\left (c + d x \right )} \cos ^{4}{\left (c + d x \right )}}{16} + \frac {b^{4} x \cos ^{6}{\left (c + d x \right )}}{16} + \frac {b^{4} \sin ^{5}{\left (c + d x \right )} \cos {\left (c + d x \right )}}{16 d} - \frac {b^{4} \sin ^{3}{\left (c + d x \right )} \cos ^{3}{\left (c + d x \right )}}{6 d} - \frac {b^{4} \sin {\left (c + d x \right )} \cos ^{5}{\left (c + d x \right )}}{16 d} & \text {for}\: d \neq 0 \\x \left (a \cos {\left (c \right )} + b \sin {\left (c \right )}\right )^{4} \cos ^{2}{\left (c \right )} & \text {otherwise} \end {cases} \]
[In]
[Out]
none
Time = 0.23 (sec) , antiderivative size = 170, normalized size of antiderivative = 0.56 \[ \int \cos ^2(c+d x) (a \cos (c+d x)+b \sin (c+d x))^4 \, dx=-\frac {128 \, a^{3} b \cos \left (d x + c\right )^{6} + {\left (4 \, \sin \left (2 \, d x + 2 \, c\right )^{3} - 60 \, d x - 60 \, c - 9 \, \sin \left (4 \, d x + 4 \, c\right ) - 48 \, \sin \left (2 \, d x + 2 \, c\right )\right )} a^{4} - 6 \, {\left (4 \, \sin \left (2 \, d x + 2 \, c\right )^{3} + 12 \, d x + 12 \, c - 3 \, \sin \left (4 \, d x + 4 \, c\right )\right )} a^{2} b^{2} + 64 \, {\left (2 \, \sin \left (d x + c\right )^{6} - 3 \, \sin \left (d x + c\right )^{4}\right )} a b^{3} + {\left (4 \, \sin \left (2 \, d x + 2 \, c\right )^{3} - 12 \, d x - 12 \, c + 3 \, \sin \left (4 \, d x + 4 \, c\right )\right )} b^{4}}{192 \, d} \]
[In]
[Out]
none
Time = 0.43 (sec) , antiderivative size = 187, normalized size of antiderivative = 0.62 \[ \int \cos ^2(c+d x) (a \cos (c+d x)+b \sin (c+d x))^4 \, dx=-\frac {a^{3} b \cos \left (4 \, d x + 4 \, c\right )}{8 \, d} + \frac {1}{16} \, {\left (5 \, a^{4} + 6 \, a^{2} b^{2} + b^{4}\right )} x - \frac {{\left (a^{3} b - a b^{3}\right )} \cos \left (6 \, d x + 6 \, c\right )}{48 \, d} - \frac {{\left (5 \, a^{3} b + 3 \, a b^{3}\right )} \cos \left (2 \, d x + 2 \, c\right )}{16 \, d} + \frac {{\left (a^{4} - 6 \, a^{2} b^{2} + b^{4}\right )} \sin \left (6 \, d x + 6 \, c\right )}{192 \, d} + \frac {{\left (3 \, a^{4} - 6 \, a^{2} b^{2} - b^{4}\right )} \sin \left (4 \, d x + 4 \, c\right )}{64 \, d} + \frac {{\left (15 \, a^{4} + 6 \, a^{2} b^{2} - b^{4}\right )} \sin \left (2 \, d x + 2 \, c\right )}{64 \, d} \]
[In]
[Out]
Time = 24.59 (sec) , antiderivative size = 471, normalized size of antiderivative = 1.56 \[ \int \cos ^2(c+d x) (a \cos (c+d x)+b \sin (c+d x))^4 \, dx=\frac {{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{11}\,\left (-\frac {11\,a^4}{8}+\frac {3\,a^2\,b^2}{4}+\frac {b^4}{8}\right )+{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5\,\left (\frac {15\,a^4}{4}-\frac {39\,a^2\,b^2}{2}+\frac {19\,b^4}{4}\right )-{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^7\,\left (\frac {15\,a^4}{4}-\frac {39\,a^2\,b^2}{2}+\frac {19\,b^4}{4}\right )-{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3\,\left (\frac {5\,a^4}{24}-\frac {47\,a^2\,b^2}{4}+\frac {17\,b^4}{24}\right )+{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^9\,\left (\frac {5\,a^4}{24}-\frac {47\,a^2\,b^2}{4}+\frac {17\,b^4}{24}\right )-\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\,\left (-\frac {11\,a^4}{8}+\frac {3\,a^2\,b^2}{4}+\frac {b^4}{8}\right )-{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^6\,\left (\frac {32\,a\,b^3}{3}-\frac {80\,a^3\,b}{3}\right )+8\,a^3\,b\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2+16\,a\,b^3\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4+16\,a\,b^3\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^8+8\,a^3\,b\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{10}}{d\,\left ({\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{12}+6\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{10}+15\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^8+20\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^6+15\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4+6\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2+1\right )}-\frac {\left (\mathrm {atan}\left (\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\right )-\frac {d\,x}{2}\right )\,\left (5\,a^4+6\,a^2\,b^2+b^4\right )}{8\,d}+\frac {\mathrm {atan}\left (\frac {\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\,\left (5\,a^2+b^2\right )\,\left (a^2+b^2\right )}{8\,\left (\frac {5\,a^4}{8}+\frac {3\,a^2\,b^2}{4}+\frac {b^4}{8}\right )}\right )\,\left (5\,a^2+b^2\right )\,\left (a^2+b^2\right )}{8\,d} \]
[In]
[Out]